package com.tingyuge.base.thread.wang.lock;

/**
 * Created by xiaodao
 * date: 2020/3/23
 */
public class Aqs {

    public static void main(String[] args) {
        Thread thread =  new Thread(()->{
            while (true){
                try {
                    System.err.println("---");
                    Thread.sleep(50);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                    break;
                }
            }
        });
        thread.start();

        thread.interrupt();
    }
}
